package com.cloud.school.app.service;

import com.cloud.school.app.model.FriendshipModel;

import java.util.List;

/**
 * @ClassName Friendship
 * @Description TODO
 * @Author 36297
 * @Date 2018/12/14 0:47
 * @Version 1.0
 */
public interface FriendshipService {
    boolean save(FriendshipModel friendshipModel);

    boolean updateStatus(Long friendshipId, int status);

    List<FriendshipModel> selectByUidAndStatus(Long uid, int status);

    boolean isFriendShipExist(Long firstUid, Long secondUid);

    List<FriendshipModel> selectDetailByUidAndStatus(Long uid, int status);
}
